integrate((a-x)/(2 a (-a x+x^2+1))+(a+x)/(2 a (a x+x^2+1)),{x,0,infinity})